package com.ruoyi.financial.mapper;

import java.util.List;
import com.ruoyi.financial.domain.FCustOdds;
import com.ruoyi.financial.vo.FBankerVo;
import org.apache.ibatis.annotations.Param;

/**
 * 客户赔率关联Mapper接口
 *
 * @author ruoyi
 * @date 2025-02-06
 */
public interface FCustOddsMapper
{
    /**
     * 查询客户赔率关联
     *
     * @param id 客户赔率关联主键
     * @return 客户赔率关联
     */
    public FCustOdds selectFCustOddsById(Long id);

    /**
     * 查询客户赔率关联列表
     *
     * @param fCustOdds 客户赔率关联
     * @return 客户赔率关联集合
     */
    public List<FCustOdds> selectFCustOddsList(FCustOdds fCustOdds);

    /**
     * 新增客户赔率关联
     *
     * @param fCustOdds 客户赔率关联
     * @return 结果
     */
    public int insertFCustOdds(FCustOdds fCustOdds);

    /**
     * 修改客户赔率关联
     *
     * @param fCustOdds 客户赔率关联
     * @return 结果
     */
    public int updateFCustOdds(FCustOdds fCustOdds);

    /**
     * 删除客户赔率关联
     *
     * @param id 客户赔率关联主键
     * @return 结果
     */
    public int deleteFCustOddsById(Long id);

    /**
     * 批量删除客户赔率关联
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFCustOddsByIds(Long[] ids);

    List<FBankerVo> selectFCustBankerOddsList(@Param("custId") Long custId,@Param("userId") Long userId);

    void deleteFCustOdds(@Param("bankerId") Long bankerId,@Param("custId") Long custId);

    void batchInsertFCustOdds(@Param("list") List<FCustOdds> custOddsList);
}
